package src.lab02.test01.test06;

public class Triangle {
        double perimeter;
        double area;
        double sideA,sideB,sideC;
        Boolean t;
        Triangle(double a,double b,double c){
            sideA=a;
            sideB=b;
            sideC=c;
            if(sideA+sideB>sideC&&sideA+sideC>sideB&&sideB+sideC>sideA){
                t=true;}
            else
                t=false;
        }
        double perimeter(){
            return sideC+sideB+sideA;
        }
        double area(){
            double m;
            m=(sideC+sideB+sideA)/2.0;
            return area=Math.sqrt(m*(m-sideA)*(m-sideB)*(m-sideC));
        }
    }

